﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Gx.Model.Entity
{
    [Table("LK_WarehousePreOut")] 
    public class LKWarehousePreOut
    {
        [Key]
        private int _id;
        /// <summary>
        /// Id
        /// </summary>
        [Column("Id")]
        public int Id 
        {
            get
            {
                return _id;
            }
            set { _id = value; }
        }
        
        
        private int _outId;
        /// <summary>
        /// 入库单id
        /// </summary>
        [Column("OutId")]
        public int OutId 
        {
            get
            {
                return _outId;
            }
            set { _outId = value; }
        }
        
        
        private int _number;
        /// <summary>
        /// 数量
        /// </summary>
        [Column("Number")]
        public int Number 
        {
            get
            {
                return _number;
            }
            set { _number = value; }
        }
        
        
        private decimal _tonWeight;
        /// <summary>
        /// 吨重
        /// </summary>
        [Column("TonWeight")]
        public decimal TonWeight 
        {
            get
            {
                return _tonWeight;
            }
            set { _tonWeight = value; }
        }
        
        
        private string _receiver;
        /// <summary>
        /// 收货人
        /// </summary>
        [Column("Receiver")]
        public string Receiver 
        {
            get
            {
                if(string.IsNullOrWhiteSpace(_receiver))
                    _receiver=string.Empty;
                return _receiver;
            }
            set { _receiver = value; }
        }
        
        
        private string _phone;
        /// <summary>
        /// 收货人电话
        /// </summary>
        [Column("Phone")]
        public string Phone 
        {
            get
            {
                if(string.IsNullOrWhiteSpace(_phone))
                    _phone=string.Empty;
                return _phone;
            }
            set { _phone = value; }
        }
        
        
        private string _address;
        /// <summary>
        /// 收货人地址
        /// </summary>
        [Column("Address")]
        public string Address 
        {
            get
            {
                if(string.IsNullOrWhiteSpace(_address))
                    _address=string.Empty;
                return _address;
            }
            set { _address = value; }
        }
        
        
        private string _billNo;
        /// <summary>
        /// 预出库编号
        /// </summary>
        [Column("BillNo")]
        public string BillNo 
        {
            get
            {
                if(string.IsNullOrWhiteSpace(_billNo))
                    _billNo=string.Empty;
                return _billNo;
            }
            set { _billNo = value; }
        }
        
        
        private System.DateTime _outTime;
        /// <summary>
        /// 预出库时间
        /// </summary>
        [Column("OutTime")]
        public System.DateTime OutTime 
        {
            get
            {
                if (_outTime == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _outTime;
            }
            set { _outTime = value; }
        }
        
        
        private System.DateTime _createTime;
        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("CreateTime")]
        public System.DateTime CreateTime 
        {
            get
            {
                if (_createTime == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _createTime;
            }
            set { _createTime = value; }
        }
        
        
        private bool _isDeleted;
        /// <summary>
        /// 是否删除
        /// </summary>
        [Column("IsDeleted")]
        public bool IsDeleted 
        {
            get
            {
                return _isDeleted;
            }
            set { _isDeleted = value; }
        }
        
        
    }
}

